-- GENERATED SPELL FOR [Patrick Mills] --


function spell0_8382(pUnit, Event) --@Devotion Aura,Self--
pUnit:FullCastSpellOnTarget(1032,pUnit)
pUnit:RegisterEvent('Sorts_8382', 627, 1)
end

function spell1_8382(pUnit, Event) --@Holy Strike,n/a--
pUnit:FullCastSpellOnTarget(17143,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8382', 651, 1)
end

function Sorts_8382(pUnit, Event)
local choix_sorts_8382 = math.random(0, 1)
if choix_sorts_8382 == 0 then
pUnit:RegisterEvent('spell0_8382', 1, 1)
end
if choix_sorts_8382 == 1 then
pUnit:RegisterEvent('spell1_8382', 1, 1)
end
end

function mob8382_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8382', math.random(1500, 3000), 1)
end

function mob8382_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8382_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8382_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8382, 1, 'mob8382_Action')
RegisterUnitEvent(8382, 2, 'mob8382_Leave')
RegisterUnitEvent(8382, 3, 'mob8382_Kill')
RegisterUnitEvent(8382, 4, 'mob8382_Die')
